package thread.forkJoinPool;

import java.util.ArrayList;
import java.util.List;

/**
 * User: Administrator
 * Date: 2021/3/10
 * Time: 10:59
 * Description:
 */
public class ProductListGenerator {

    public List<Product> generator(int size) {
        ArrayList<Product> list = new ArrayList<>();
        for (int i = 0; i < size; i++) {
            list.add(new Product("Product" + i, i));
        }
        return list;
    }
}
